<?php if ($sf_user->isAuthenticated()): ?>
  <form action="<?php echo url_for('@sf_guard_signout') ?>" method="post">
    <div id="signin_form">
      <h4>Atleta: </h4><?php echo $sf_user->getUsername() ?>
    </div>
    <div class="submit">
      <input class="submit_btn darkblue" type="button" value="Sair" />
    </div>
  </form>
  <a class="link" href="<?php echo url_for('@user_edit?id='.$sf_user->getGuardUser()->getId()) ?>">Editar meus dados</a>
  <a class="link" href="<?php echo url_for('@change_password') ?>">Alterar senha</a>
<?php else: ?>
  <form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
    <div id="signin_form">
      <table>
        <tr>
          <th>Usu&aacute;rio</th>
          <td><?php echo $form['username'] ?></td>
        </tr>
        <tr>
          <th>Senha</th>
          <td><?php echo $form['password'] ?></td>
        </tr>
        <tr>
          <th>Lembre-se de mim</th>
          <td><?php echo $form['remember'] ?></td>
        </tr>
      </table>
    </div>
    <div class="submit">
      <input class="submit_btn darkblue" type="button" value="Entrar" />
    </div>
  </form>
<?php endif; ?>
